package com.ruoyi.hqfinance.mapper;

import com.ruoyi.hqfinance.domain.HqClientRelation;
import com.ruoyi.hqfinance.domain.vo.HqClientRelationVo;
import com.ruoyi.logistic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface HqClientRelationMapper extends BaseMapper<HqClientRelation> {
    List<HqClientRelation> selectSmallClient(Integer parentId);
    List<HqClientRelation> selectBigClient();
    List<HqClientRelation> search(HqClientRelationVo vo);
    HqClientRelation selectClientByName(String name);
    HqClientRelation selectBigClientByName(String name);
    String findNetworkNameByParentId(Integer parentId);
    String findNetworkCodeByParentId(Integer parentId);
    String findParentName(String name);
    String findSonName(String name);
//查询父客户下子客户ids
    List<Integer> selectIdsByParentId(Integer parentId);

    BigDecimal selectByFix();

}
